package com.develop.data.loan.container;

import lombok.Data;

import javax.money.MonetaryAmount;

@Deprecated
@Data
public class LoanRepaymentItem {

    public int installmentTerm;
    public MonetaryAmount installmentCorpusDueAccrual;
    public MonetaryAmount installmentPrincipalAccrued;
    public MonetaryAmount installmentInterestDueAccrual;
    public MonetaryAmount contractPrincipalAccruedOpening;
    public MonetaryAmount contractPrincipalAccruedClosing;

    public LoanRepaymentItem(int term, MonetaryAmount corpus, MonetaryAmount principal, MonetaryAmount interest, MonetaryAmount openingBalance, MonetaryAmount closingBalance){
        installmentTerm = term;
        installmentCorpusDueAccrual = corpus;
        installmentPrincipalAccrued = principal;
        installmentInterestDueAccrual = interest;
        contractPrincipalAccruedOpening = openingBalance;
        contractPrincipalAccruedClosing = closingBalance;
    }
}
